<?php
# 文件名称:fdparameter.php
# MetInfo在线反馈系统 
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
defined( '_SYS' ) or die( 'No direct script access allowed' );
class C_tableFdparameter extends C_table
{
	var $id				= null;
	
	var $no_order		= null;
	
	var $use_ok			= null;
	
	var $wr_ok			= null;
	
	var $type			= null;
	
	var $form			= null;
	
	var $access			= null;
	
	var $params			= null;
	
	function C_tableFdparameter( &$db )
	{
		parent::__construct( $db->_table_prefix."fdparameter", 'id', $db );
		$this->id        = 0;
	}
	
	/**
	 * 过滤验证
	 *
	 */
	function check()
	{
		return true;
	}
	function bindall( $from,$id , $ignore=array() )
	{
		$fromArray	= is_array( $from );
		$this->id = $id;
		if (!$fromArray && !$fromObject)
		{
			return false;
		}
		if (!is_array( $ignore )) {
			$ignore = explode( ' ', $ignore );
		}
		foreach ($this->getProperties() as $k => $v)
		{
			if (!in_array( $k, $ignore ))
			{
				if(($k=='use_ok' || $k=='wr_ok') && !isset($from[$k][$this->id]))
					$from[$k][$this->id] = 0;
				if ($fromArray && isset( $from[$k] )) {
					$this->$k = $from[$k][$this->id];
				}
			}
		}
		return true;
	}
}
# 本程序是一个开源系统,使用时请你仔细阅读使用协议,商业用途请自觉购买商业授权.
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
?>